home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Mouse Options.xpl < prev    next >
Text File  |  1999-08-30  |  2KB  |  73 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="3"
  4. "UIPATH"="General Usage\Mouse"
  5. "NAME"="Mouse Options"
  6. "VERSION"="1.41"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Activate window when mouse passes it (X Windows Style)"
  9. "TEXT 2"="Move mouse pointer to default button"
  10. "TEXT 3"="Swap mouse buttons"
  11. "DESCRIPTION 1"="If the first option is activated, a window is activated a soon as the mouse pointer is over it."
  12. "DESCRIPTION 2"="If the second option is activated, the mouse pointer is automatically moved to the default button in dialogs (that is, the button with the black border)."
  13. "DESCRIPTION 3"="If the third option is activated, the mouse buttons are changed, so if it's activated, the left buttons becoms the right button and vica versa." 
  14. "AUTHOR"="Xteq Systems"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  17. "COMMENT 2"="Thanks to Shelley Hebert <sdh7@ra.msstate.edu> for "this won't work in Windows 95"."
  18. "COMMENT 3"="Thanks also to CptSiskoX for the bug-report!"
  19.  
  20. sP="HKCU\Control Panel\Mouse\"
  21. v1="ActiveWindowTracking" 'DWord
  22. v2="SnapToDefaultButton" 'String
  23. v3="SwapMouseButtons" 'String
  24.  
  25. Sub Plugin_Initialize 
  26.  if GetWinVer=2 or GetWinVer=4 then
  27.     i=RegReadValue(sp & v1)
  28.     if i=1 then SetUIElement 1,true
  29.  
  30.     i=RegReadValue(sp & v2)
  31.     if i=1 then SetUIElement 2,true
  32.  
  33.     i=RegReadValue(sp & v3)
  34.     if i=1 then SetUIElement 3,true
  35.  
  36.  else
  37.     Call Disable()
  38.  end if
  39. End Sub
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  45.  b=GetUIElement(1)
  46.  if b=true then
  47.     Call RegWriteValue(sp & v1,1,2)
  48.  else
  49.     Call RegWriteValue(sp & v1,0,2)
  50.  end if
  51.  
  52.  b=GetUIElement(2)
  53.  if b=true then
  54.     Call RegWriteValue(sp & v2,1,1)
  55.  else
  56.     Call RegWriteValue(sp & v2,0,1)
  57.  end if
  58.  
  59.  b=GetUIElement(3)
  60.  if b=true then
  61.     Call RegWriteValue(sp & v3,1,1)
  62.  else
  63.     Call RegWriteValue(sp & v3,0,1)
  64.  end if
  65.  
  66.  
  67.  Call Logoff()
  68. End Sub
  69.  
  70.  
  71. Sub Plugin_Terminate 
  72. End Sub
  73.